/*
 * Module 02
 *
 */

package ua.gl.basecamp.tabachnyy.util;

import ua.gl.basecamp.tabachnyy.testcase.Answer;
import ua.gl.basecamp.tabachnyy.testcase.Question;
import ua.gl.basecamp.tabachnyy.testcase.UserAnswer;

import java.util.List;

/**
 * @author yaroslav.tabachnyy@gmail.com
 * @version 1.02
 * @date 14.02.2013
 *
 */
public class ScoreCounter {

    private double score = 0;

    public void calculateScore(Question question, List<UserAnswer> userAnswers) {
        score += question.getAnswersScore(userAnswers);
    }

    public double getScore() {
        return score;
    }
}
